from django.contrib.auth.models import User
from django.db import models

# Create your models here.
class RegisterModel(models.Model):
    role_choices = (
        ('student', '学生'),
        ('company', '企业'),
        ('admin', '管理员'),
    )
    username = models.CharField(max_length=100)
    password = models.CharField(max_length=100)
    identify_password = models.CharField(max_length=100)
    create_time=models.DateTimeField(auto_now_add=True)
    role = models.CharField(max_length=20, choices=role_choices, default='student')
